package work.xiaohong.websocket.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/9/25 0025 13:40
 * @description
 */
@Document
@Data
public class SendMsgVo implements Serializable {

    @NotBlank(message = "发送者不能为空")
    @NotNull(message = "发送者不能为空")
    @NotEmpty(message = "发送者不能为空")
    private String sender;//发送者

    @NotBlank(message = "接收者不能为空")
    @NotNull(message = "接收者不能为空")
    @NotEmpty(message = "接收者不能为空")
    private String receiver;//接收者

    @NotBlank(message = "消息内容不能为空")
    @NotNull(message = "消息内容不能为空")
    @NotEmpty(message = "消息内容不能为空")
    private String context;//消息内容

    @NotNull(message = "消息类型不能为空")
    private Integer type;//消息类型

    @NotNull(message = "发送时间不能为空")
    private Date sendTime;//发送时间

    @NotNull(message = "消息状态不能为空")
    private Integer status;//消息状态

    @NotNull(message = "消息标记不能为空")
    private Integer label;//消息标记

}
